<?php

namespace App\Http\Models;

use App\Observers\Apiuserobserver;
use Illuminate\Database\Eloquent\Model;

use Illuminate\Database\Eloquent\SoftDeletes;
use Laravel\Passport\HasApiTokens;

class Apiuser extends Base
{

    use SoftDeletes,HasApiTokens;
    // 软删除标识字段
    protected $dates = ['deleted_at'];

    // 设置添加的字段  create 添加数据有效的
    // 拒绝不添加的字段
    protected $guarded = [];
    protected static function boot()
    {
        parent::boot(); // TODO: Change the autogenerated stub
        self::observe(Apiuserobserver::class);
    }
}
